package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author stone
 * @date 2022/05/30 11:18
 */
@RequestMapping("param")
@Controller
public class RequestParamLimitController {

    // 请求参数既要携带username又要携带password
    @RequestMapping(value = "login",params = {"username","password"})
    @ResponseBody
    public String login() {
        return "login";
    }
}
